package com.ruoyi.system.service;

import com.ruoyi.common.email.model.ToEmail;
import com.ruoyi.common.enums.EmailEnums;

import java.util.Map;

/**
 * @ClassName EmailUtilsServer
 * @Description
 * @Author wed
 * @Date 2022/3/25
 * @Version 1.0
 **/
public interface EmailUtilsServer {

    /**
     * 发送自定义邮件
     * @param toEmail
     * @return
     */
    Boolean commonEmail(ToEmail toEmail);

    /**
     * 发送验证邮件
     * @param email
     * @param enums
     * @return
     */
    Map<String, Object> CheckToEmail(String email, EmailEnums enums);
}
